package com.javarush.test.level04.lesson06.task03;

/* Сортировка трех чисел
Ввести с клавиатуры три числа, и вывести их в порядке убывания.
*/

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Solution
{
    public static void main(String[] args) throws Exception
    {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String as = reader.readLine();
        String bs = reader.readLine();
        String cs = reader.readLine();
        int a = Integer.parseInt(as);
        int b = Integer.parseInt(bs);
        int c = Integer.parseInt(cs);

        //System.out.println(a+b+c);

        int[] arr;
        arr = new int[3];
        arr[0] = a;
        arr[1] = b;
        arr[2] = c;

        //System.out.println(arr[0]+arr[1]+arr[2]);

        for (int i = 0; i < arr.length; ++i) {
            int min = i;
            for (int j = i + 1; j < arr.length; ++j) {
                if (arr[j] < arr[min]) {
                    min = j;
                }
            }
            int du = arr[i];
            arr[i] = arr[min];
            arr[min] = du;
        }
        for (int e = arr.length - 1; e >= 0; --e) {
            System.out.println(arr[e]);
        }


    }





}
